/**
 * Created by apple on 2017/7/1.
 */
import React, { Component } from 'react';
import {
  View,
  Text
} from "react-native";



export default class WelcomePage extends Component {
  componentDidMount() {
    console.log(this.props);
    this.timer = setTimeout(() => {
      this.props.navigation.navigate('Tab')
    }, 2000)
  }
  componentWillUnmount() {
    this.timer && clearTimeout(this.timer)
  }
  render() {
    return (
      <View>
        <Text>欢迎界面</Text>
      </View>
    )
  }
}
